home *** CD-ROM | disk | FTP | other *** search
- ; All the data for a cube.
-
- PTS_PER_PLANE equ 4 ;# Points that define a plane (-1)
- NUM_PLANES equ 6 ;# of planes we got.
- NUM_PTS equ 8 ;total # of points
- PLANE_LENGTH equ 2*(PTS_PER_PLANE+1) ;length of tha plane in bytes.
-
- ;XYZ coords of my object - a cube that is 5x5x5 units.
-
- XYZPointList dd -50000h,-50000h,-50000h
- dd -50000h, 50000h,-50000h
- dd 50000h, 50000h,-50000h
- dd 50000h,-50000h,-50000h
- dd 50000h, 50000h, 50000h
- dd 50000h,-50000h, 50000h
- dd -50000h,-50000h, 50000h
- dd -50000h, 50000h, 50000h
-
- ;Normal vectors to the planes (In order!)
-
- NormalList dd 00000h, 00000h, -10000h
- dd -10000h, 00000h, 00000h
- dd 00000h, 00000h, 10000h
- dd 00000h, -10000h, 00000h
- dd 10000h, 00000h, 00000h
- dd 00000h, 10000h, 00000h
-
- plane1 dw 1,0,3,2,1 ;Pointlist indexes.
- plane2 dw 0,6,7,1,0
- plane3 dw 6,5,4,7,6
- plane4 dw 0,6,5,3,0
- plane5 dw 2,3,5,4,2
- plane6 dw 1,7,4,2,1
-
-